package com.woniu.adminservice.controller;

import com.woniu.adminservice.entity.Log;
import com.woniu.adminservice.service.LogService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("log")
public class LogController {
    @Resource
    private LogService logService;

    @GetMapping("selectOne")
    public Log selectOne(Integer id) {
        return logService.queryById(id);
    }

}